function [varargout] = clustercoordsc(varargin)
% clustercoords  - get list of clusters in volume
%
% FORMAT:       [cs, cv, l, c] = clustercoordsc(v [, m [, t]]);
%
% Input fields:
% 
%       v           binary input volume
%       m           method, default: 2
%                   1 face-connectivity (3D)
%                   2 edge-connectivity (3D)
%                   3 vertex-connectivity (3D)
%                   4 face-connectivity (XY-slice)
%                   5 edge-connectivity (XY-slice)
%       t           cluster-size threshold, default: 1
%
% Output fields:
%
%       cs          list of cluster sizes
%       cv          clustered volume (uint32 with 0's for false voxels
%                   and 1...n for clustered voxels)
%       l           Vx4 list of cluster voxels [x(:), y(:), z(:), n(:)]
%       c           Cx1 cell array with lists of coordinates

% Version:  v0.7f
% Build:    8110521
% Date:     Nov-05 2008, 9:00 PM CET
% Author:   Jochen Weber, SCAN Unit, Columbia University, NYC, NY, USA
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% bail out
error( ...
    'BVQXtools:MEXMissing', ...
    'This is a compiled function, but the MEX file is missing.' ...
);

